var
    jsonrpc = require('./json-rpc'),
    jsonRpc = new jsonrpc.JsonRpc();

function SimpleServer(){}

SimpleServer.prototype.echo = function(message){
    // some stuff goes here
    return true;
};

var simpleServer = new SimpleServer();

jsonRpc.registerServer(simpleServer);
jsonRpc.registerTransport(socket);
simpleServer.addListener('handleMessage', function(userId, message){

});



function SimpleClient(){}
sys.inherits(SimpleClient, json-rpc.Client);

SimpleClient.prototype.echo = function(message){
    this.call('echo', message);
};

var simpleClient = new SimpleClient();
simpleClient.setDispatcher(jsonRpc);
simpleClient.addListener('echo', function(result){

});
simpleClient.echo("Hello JSON-RPC!");
